* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}

.image-slider {
    width: 100vw;
    height: 100vh;
}

.image-slider .slide {
    width: 100%;
    height: 100%;
    transition: all linear .8s;
    position: absolute;
    overflow: hidden;
}

.image-slider .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 50;
}

.image-slider .slide .content {
    position: absolute;
    z-index: 100;
    color: white;
    padding: 48px;
    background-color: rgba(0, 0, 0, .6);
    bottom: 0;
    width: 50%;
}

.image-slider .slide .content h1 {
    margin-bottom: 24px;
}

#prev,
#next {
    position: absolute;
    z-index: 150;
    width: 80px;
    height: 80px;
    font-size: 48px;
    color: white;
    text-align: center;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .6);
    top: calc(50% - 24px);
    left: 50px;
    transition: all .2s;
    cursor: pointer;
}

#next {
    left: unset;
    right: 50px;
}

#prev:hover,
#next:hover {
    background-color: rgba(255, 255, 255, .6);
    color: black;
}

.image-slider .slide {
    opacity: 0;
}

.image-slider .slide.current {
    opacity: 1;
}

.image-slider .slide .content {
    opacity: 0;
    transform: translateY(500px);
}

.image-slider .slide.current .content {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-in-out .4s;
}

@media screen and (max-width:960px) {
    .image-slider .slide .content {
        width: 100%;
    }
    #prev,
    #next {
        font-size: 24px;
        left: 24px;
        width: 48px;
        height: 48px;
        line-height: 48px;
        top: 40%;
    }
    #next {
        left: unset;
        right: 24px;
    }
}